class Student:
    def __init__(self,name="佚名"):
        self.name = name
    def greet(self):
        print(f"大家好，我的名字叫{self.name}")

stu1 = Student("安心")
stu2 = Student()
stu1.greet()
stu2.greet()

















